/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f7fa;
}

#app {
  min-height: 100vh;
}

/* 布局样式 */
.layout-container {
  min-height: 100vh;
  margin-left: 200px;
  position: relative;
}

.el-aside {
  background-color: #fff;
  border-right: solid 1px #e6e6e6;
  position: fixed;
  left: 0;
  top: 0;
  width: 200px;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.logo {
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #409EFF;
  border-bottom: 1px solid #e6e6e6;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.3s;
}

.logo:hover {
  color: #66b1ff;
}

.side-menu {
  border-right: none;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 主菜单项容器 */
.menu-items-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

/* 化身容器 */
.avatar-container {
  margin-top: auto;
  border-top: 1px solid #e6e6e6;
  background-color: #fff;
}

/* 菜单项样式 */
.el-menu-item {
  height: 56px;
  line-height: 56px;
  padding: 0 20px !important;
  margin: 4px 0;
}

/* 图标样式 */
.el-menu-item .el-icon {
  margin-right: 12px;
  font-size: 18px;
}

/* 移除之前的avatar-menu-item定位相关样式 */
.avatar-menu-item {
  border-top: none;
}

.el-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.user-profile:hover {
  background-color: #f5f7fa;
}

.el-avatar {
  background-color: #409EFF;
}

.el-main {
  background-color: #f5f7fa;
  min-height: calc(100vh - 60px);
  padding: 20px;
}

/* 探索页面样式 */
.explore-container {
  padding: 20px;
}

.avatar-card {
  margin-bottom: 20px;
}

.avatar-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.avatar-image {
  width: 120px;
  height: 120px;
  margin-right: 20px;
  border-radius: 8px;
}

.avatar-details {
  flex: 1;
}

.avatar-tags {
  margin-top: 10px;
}

.avatar-tags .el-tag {
  margin-right: 8px;
  margin-bottom: 8px;
}

/* 好友页面样式 */
.friends-container {
  padding: 20px;
}

.search-input {
  margin-bottom: 20px;
}

.friend-card {
  margin-bottom: 15px;
}

.friend-info {
  display: flex;
  align-items: center;
}

.friend-details {
  margin-left: 15px;
  flex: 1;
}

/* 聊天页面样式 */
.chat-container {
  height: calc(100vh - 120px);
}

.chat-list {
  border-right: 1px solid #e6e6e6;
  background: #fff;
}

.chat-session {
  padding: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.chat-session.active {
  background: #f5f7fa;
}

.session-info {
  margin-left: 15px;
  flex: 1;
}

.message-area {
  padding: 20px;
  overflow-y: auto;
}

.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.message-self {
  flex-direction: row-reverse;
}

.message-content {
  margin: 0 15px;
  padding: 10px 15px;
  background: #fff;
  border-radius: 4px;
  max-width: 70%;
}

.message-self .message-content {
  background: #409EFF;
  color: #fff;
}

/* 广场页面样式 */
.square-container {
  padding: 20px;
}

.post-action {
  margin-bottom: 20px;
}

.post-card {
  margin-bottom: 20px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author {
  display: flex;
  align-items: center;
}

.post-author span {
  margin-left: 10px;
}

.post-images {
  margin-top: 15px;
}

.post-images .el-image {
  width: 100px;
  height: 100px;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* 我的化身页面样式 */
.my-avatar-container {
  padding: 20px;
}

.avatar-info-card,
.avatar-stats-card {
  margin-bottom: 20px;
}

.avatar-preview {
  text-align: center;
  margin-bottom: 20px;
}

.avatar-preview .el-image {
  width: 200px;
  height: 200px;
  border-radius: 8px;
}

.stat-item {
  text-align: center;
  padding: 20px 0;
}

.stat-item h3 {
  font-size: 24px;
  color: #409EFF;
}

.recent-interactions {
  margin-top: 20px;
}

.step-content {
  margin-top: 20px;
  padding: 20px;
}

.avatar-uploader,
.voice-uploader {
  text-align: center;
}

.upload-tip {
  color: #909399;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* 主页样式 */
.home-container {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #e6f3ff 0%, #f5f7fa 100%);
  border-radius: 12px;
  margin-bottom: 60px;
}

.welcome-section h1 {
  font-size: 48px;
  color: #303133;
  margin-bottom: 20px;
}

.welcome-section .subtitle {
  font-size: 20px;
  color: #606266;
  margin-bottom: 30px;
}

.features-section {
  margin-bottom: 60px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card .el-icon {
  color: #409EFF;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  color: #303133;
  margin-bottom: 15px;
}

.feature-card p {
  color: #606266;
  line-height: 1.6;
}

.active-users-section {
  margin-top: 60px;
}

.active-users-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: #303133;
}

.user-preview-card {
  text-align: center;
  margin-bottom: 20px;
}

.user-preview-card .user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.user-preview-card h4 {
  margin-bottom: 10px;
  color: #303133;
}

.user-tags {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 登录注册对话框样式 */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* 个人设置页面样式 */
.settings-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.settings-card {
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 个人主页样式 */
.profile-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.profile-card {
  margin-bottom: 20px;
}

.profile-header {
  text-align: center;
  padding: 20px 0;
}

.profile-header h2 {
  margin: 10px 0;
  color: #303133;
}

.profile-info {
  padding: 20px 0;
}

.profile-info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #606266;
}

.avatar-card {
  margin-bottom: 20px;
}

.avatar-preview {
  padding: 20px 0;
}

.avatar-details {
  padding: 0 20px;
}

.avatar-details h4 {
  margin-bottom: 15px;
  color: #303133;
}

.avatar-details p {
  margin: 10px 0;
  color: #606266;
}

.posts-card {
  margin-bottom: 20px;
}

/* 帖子列表样式 */
.post-item {
  padding: 15px 20px;
  border-bottom: 1px solid #EBEEF5;
}

.post-item:last-child {
  border-bottom: none;
}

.post-content {
  cursor: pointer;
  transition: color 0.3s;
}

.post-content:hover h3 {
  color: #409EFF;
}

.post-content h3 {
  margin: 0;
  font-size: 16px;
  color: #303133;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.post-time {
  color: #909399;
  font-size: 14px;
}

.post-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #909399;
}

.stat-item .el-icon {
  font-size: 16px;
}

.post-actions {
  display: flex;
  gap: 15px;
} 